<?php
class Q_Rule_InArray extends Q_Rule_Abstract {

    /**
     * The parameters that were passed to this rule
     */
    protected $_params = array(
        'field' => 0, // default is zero because this allows $rule->validate('some text')
        'array' => array(),
    );
    /**
     * 
     */
    public function isValid($value) {
    
        return (in_array($value, $this->getParam('array')));
    
    }

}